package org.skyui.views;

import com.vaadin.ui.TabSheet;
import com.vaadin.ui.TabSheet.SelectedTabChangeListener;

public abstract class AbstractNavigationTabSheet extends TabSheet implements
		SelectedTabChangeListener {

	boolean locked = true;
	
	
	
	public boolean isLocked() {
		return locked;
	}

	public void setLocked(boolean locked) {
		this.locked = locked;
	}

	private static final long serialVersionUID = 2454864202718619653L;

	public AbstractNavigationTabSheet() {
		addListener(this);
	}

	public void selectedTabChange(SelectedTabChangeEvent event) {
		UIView tab = (UIView) getSelectedTab();
		if (tab != null)
			tab.refresh();
	}
}
